home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
business
/
oasis3.zip
/
INSTALLA.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-12-08
|
7KB
|
161 lines
Echo Off
REM ******************************************************
REM * File : Install.bat
REM * Author : Stephen Williams
REM * Date : Sept. 3, 1992
REM * Revised: Dec 8, 1994
REM * Purpose: Installation - OASIS Ver 3.x
REM ******************************************************
if "%1" == "" goto help
if "%1" == "?" goto help
if "%1" == "A:" goto help
if "%1" == "a:" goto help
if "%1" == "B:" goto help
if "%1" == "b:" goto help
if "%1" == "A" goto help
if "%1" == "a" goto help
if "%1" == "B" goto help
if "%1" == "b" goto help
for %%f in (C:,c:,D:,d:,E:,e:,F:,f:,G:,g:,H:,h:,I:,i:) do if %1.==%%f. goto Help
for %%f in (J:,j:,K:,k:,L:,l:,M:,m:,N:,n:,O:,o:,P:,p:) do if %1.==%%f. goto Help
for %%f in (Q:,q:,R:,r:,S:,s:,T:,t:,U:,u:,V:,v:,W:,w:) do if %1.==%%f. goto Help
for %%f in (X:,x:,Y:,y:,Z:,z:) do if %1.==%%f. goto Help
REM **************************
REM HARD DISK INSTALLATION
REM **************************
if not exist %1:\nul goto help
if not exist OASIS_EX.EXE goto BadDef
if not exist OASIS_DB.EXE goto BadDef
if not exist ORDERA.DOC goto BadDef
if not exist README.OAS goto BadDef
CLS
Echo ┌──────────────────────────────────────────────────────┐
Echo │ │
Echo │ OASIS INSTALLATION │
Echo │ │
Echo │ Install Main Program & Help Files on %1:\OWL │
Echo │ │
if exist %1:\OWL\OASIS.EXE goto ExistEXE
if exist %1:\OWL\OAHELP.DBF goto ExistEXE
if exist %1:\OWL\OAHELP.DBT goto ExistEXE
if exist %1:\OWL\OASIS.ICO goto ExistEXE
if exist %1:\OWL\OASIS2.DBF goto ExistEXE
if exist %1:\OWL\ORDERA.DOC goto ExistEXE
:InsMain
Echo └──────────────────────────────────────────────────────┘
Echo \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
OASIS_EX %1:\OWL
CLS
Echo ┌──────────────────────────────────────────────────────┐
Echo │ │
Echo │ OASIS INSTALLATION │
Echo │ │
Echo │ Installing Sample Data Files on %1:\OWL │
Echo │ │
if exist %1:\OWL\CUST2.DBF goto ExistDat
if exist %1:\OWL\CUST2.DBT goto ExistDat
if exist %1:\OWL\GROUPS.DBF goto ExistDat
if exist %1:\OWL\INV.DBF goto ExistDat
if exist %1:\OWL\INV.DBT goto ExistDat
if exist %1:\OWL\ITM3.DBF goto ExistDat
if exist %1:\OWL\PMT.DBF goto ExistDat
if exist %1:\OWL\PROD3.DBF goto ExistDat
if exist %1:\OWL\PROD3.DBT goto ExistDat
if exist %1:\OWL\LABDEF.DBF goto ExistDat
if exist %1:\OWL\PRDEF2.DBF goto ExistDat
:InsDat
Echo └──────────────────────────────────────────────────────┘
Echo \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
OASIS_DB %1:\OWL
COPY ORDERA.DOC %1:\OWL\ORDERA.DOC
COPY README.oas %1:\OWL\README.oas
%1:
CD \OWL
goto End
:ExistEXE
Echo │ IMPORTANT: Program already exists on your system. │
Echo │ │
Echo │ When Prompted: Overwrite [Y/N] │
Echo │ │
Echo │ Press Y if you are upgrading from an earlier version │
Echo │ or want to reinstall the program. │
Echo │ │
Echo │ Press N to retain your existing program & help files.│
goto InsMain
:ExistDat
Echo │ IMPORTANT: Data files already exist on your system. │
Echo │ │
Echo │ When Prompted: Overwrite [Y/N] │
Echo │ │
Echo │ Press N to retain your existing data files. │
Echo │ │
Echo │ Press Y to replace your existing data files with the │
Echo │ sample data files. │
goto InsDat
:BadDef
CLS
Echo ┌────────────────────────────────────────────────────────────────┐
Echo │ OASIS 3.X - Installation HELP │
Echo │ │
Echo │ INSTALLA must be run from the drive where INSTALLA.BAT resides │
Echo │ │
Echo │ If you are installing OASIS from a floppy disk in drive A │
Echo │ type "A:" before running INSTALLA. │
Echo │ │
Echo │ Example: A: (Set Default To Drive A) │
Echo │ INSTALLA C (Install Program on drive C) │
Echo │ │
Echo │ PROGRAM NOT INSTALLED │
Echo └────────────────────────────────────────────────────────────────┘
goto bad_end
:Help
Cls
Echo ┌────────────────────────────────────────────────────────────────┐
Echo │ OASIS 3.X - Installation HELP │
Echo │ │
Echo │ │
Echo │ OASIS must be installed on a HARD DISK DRIVE. │
Echo │ │
Echo │ The install program decompresses archive files and copies them │
Echo │ to subdirectory \OWL on the designated hard disk drive. If │
Echo │ \OWL does not exist on the designated hard disk, it will be │
Echo │ created for you. │
Echo │ │
Echo │ Syntax for the command is: INSTALLA d │
Echo │ │
Echo │ where "d" is the hard disk drive letter where you want │
Echo │ the program installed. │
Echo │ │
Echo │ Examples: INSTALLA C (Note no colon is typed) │
Echo │ INSTALLA D │
Echo │ etc. │
Echo │ │
Echo │ PROGRAM NOT INSTALLED │
Echo └────────────────────────────────────────────────────────────────┘
goto bad_end
REM ************************
REM End Of OASIS Installation
REM ************************
:end
CLS
Echo ┌──────────────────────────────────────────────────────┐
Echo │ OASIS HAS BEEN INSTALLED ON %1:\OWL │
Echo │ │
Echo │ To run OASIS type "OASIS" │
Echo │ │
Echo │ Please review file README.OAS for important infor- │
Echo │ mation on configuring your system. │
Echo └──────────────────────────────────────────────────────┘
:bad_end